public class OnlineFormat extends NotificationFormat {
	public void getContactDetails()

	{
		System.out.println("getting mobile number of user");
	}

	public boolean isSubscribed() {
		return true;
	}

	public void notifyUser(String orderState) {
		System.out.println("notification is been sent to user");
		if (orderState.equals("Fullfiled"))
			orderFullfiledNotification();
		if (orderState.equals("Cancelled"))
			orderCancelledNotification();
		if (orderState.equals("Withdrawn"))
			orderWithdrawnNotification();
		if (orderState.equals("Pending"))
			orderPendingNotification();
	}

	public void orderFullfiledNotification() {
		System.out.println("your order has been fullfiled");
	}

	public void orderCancelledNotification() {
		System.out.println("your order has been cancelled");
	}

	public void orderWithdrawnNotification() {
		System.out.println("your order has been withdwarn");
	}

	public void orderPendingNotification() {
		System.out.println("your order is pending");
	}

	public void listOrders() {

	}

	public void display() {
		System.out.println("Displaying in Online format");
	}
}